package o2o.system;


import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
* 类名称：Constant
* 类描述： 常用参数
* 创建人：Jahnke 1029777564@qq.com
* 创建时间：2016年8月17日 下午12:01:46
* 修改备注：
* @version
 */
public class Constant {
	public final static int UserStatus11 = 11;		//司机等待抢单，乘客未交车
	public final static int UserStatus20 = 20;		//乘客已叫车
	public final static int UserStatus29 = 29;		//司机抢单，乘客-存在司机抢单
	public final static int UserStatus39 = 39;		//司机成功抢单，乘客选择
	public final static int UserStatus51 = 51;		//司机到达当前位置
	public final static int UserStatus61 = 61;		//司机出发
	public final static int UserStatus71 = 71;		//到达目的地
	public final static int UserStatus93 = 93;		//乘客发起支付
	public final static int UserStatus99 = 99;		//支付成功，订单完成

	public final static int OrderCancel = 0;		//取消订单
	public final static int OrderCreate= 39;		//创建订单
	public final static int OrderDriverPickUp = 51;		//司机到达接送位置
	public final static int OrderSendOut = 61;		//司机出发
	public final static int OrderReach = 71;		//到达目的地
	public final static int OrderPayed = 93;		//发起支付
	public final static int OrderFinish = 99;		//支付成功，完成订单

	public static int Push2DriverAdound = 8;		//给司机关于乘客信息的推送范围
	public static int PasswngerCallAround = 8;		//乘客可以查看周边车辆的范围



	public static String IPHONE = "iphone";
	public static String ANDROID = "android";
	public static String PC = "pc";
	public static String GroupFriend = "朋友";
	public static String GroupFamily = "家人";
	public static List<String> deviceTypeMap = new ArrayList<String>();		//登录平台的设备类型
	static{
		deviceTypeMap.add("iphone");
		deviceTypeMap.add("android");
		deviceTypeMap.add("pc");
	}


	private static long userCounts = 0;
	//设置当前系统用户数量
	public static void setUserCounts(long counts){
		userCounts = counts;
	}
	//增加系统用户数量
	public static void addUserCounts(){
		userCounts += 1;
	}
	//返回系统的用户数量
	public static long getUserCounts(){
		return userCounts;
	}

	//获取当前时间的时间戳
	public static long getCurrTime(){
		return new Date().getTime();
	}
}
